#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QStackedWidget>
#include <QVBoxLayout>
#include <QDebug>
#include <QDateTime>
#include "loginwidget.h"
#include "clientwidget.h"
#include "networkclient.h"
#include "managementwidget.h"


namespace Ui {
    class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = 0);
    ~MainWidget();

    void launchLogInWidget();

signals:
    void changeIpPortNumber(QString, int);
    void loadLogs(QString);
    void loadUsers(UserData *);

public slots:
    void determineWidget(UserData *);
    void disconnectUserListSignal();

private:
    Ui::MainWidget *ui;
    QVBoxLayout *layout;
    QStackedWidget *stackedWidget;
    NetworkClient *networkClient;
    ManagementWidget *managementWidget;
    ClientWidget *clientWidget;


};

#endif // MAINWIDGET_H
